package com.zzzyh.forumsystemclient.dao;

import com.zzzyh.forumsystemclient.model.Notifications;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NotificationsMapper {
    int insert(Notifications row);

    int insertSelective(Notifications row);

    Notifications selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Notifications row);

    int updateByPrimaryKeyWithBLOBs(Notifications row);

    int updateByPrimaryKey(Notifications row);

    List<Notifications> notifications(@Param("pageNum") Integer pageNum, @Param("offset") Integer offset, @Param("type") String type, @Param("userId") Integer userId);

    Integer total(@Param("type") String type, @Param("userId") Integer userId, @Param("isRead") Integer isRead);

    void read(Integer notificationId);

    void readAll(Integer userId);

    void deleteById(Integer id);
}